#include "globalsettingspanel.h"

Globalsettingspanel::Globalsettingspanel()
{
	v_width = 340;
	v_height = 388;

	isMovable = true;

	position.x = 50;
	position.y = 35;

	// FIXME camera sensitivity is missing
	addSection("Global / Application", 0, 0);

	addMutator("worldsizeX", cmd.gen("dec_worldsizex"), cmd.gen("inc_worldsizex"), 0, 0);
	addMutator("worldsizeY", cmd.gen("dec_worldsizey"), cmd.gen("inc_worldsizey"), 0, 0);
	addMutator("worldsizeZ", cmd.gen("dec_worldsizez"), cmd.gen("inc_worldsizez"), 0, 0);
	addSettingmutator("threads", 0, 0);
	addSettingcheckbox("colormode", 0, 0);
	addSettingcheckbox("exit_if_empty", 0, 0);
// 	addSettingmutator("fsX", 0, 0);
// 	addSettingmutator("fsY", 0, 0);
// 	addSettingmutator("fullscreen", 0, 0);
// 	addSettingmutator("fpslimit", 0, 0);
// 	addSettingmutator("drawscene", 0, 0);

	row+=8; addSection("Critter", 0, 0);
	addSettingmutator("mincritters", 0, 0);
	addSettingmutator("critter_insertevery", 0, 0);
	addSettingmutator("critter_maxlifetime", 0, 0);
	addSettingmutator("critter_maxenergy", 0, 0);
	addSettingmutator("critter_startenergy", 0, 0);
	addSettingmutator("critter_procinterval", 0, 0);
	addSettingmutator("critter_minenergyproc", 0, 0);
	addSettingmutator("critter_sightrange", 0, 0);
	addSettingmutator("critter_autosaveinterval", 0, 0);
	addSettingmutator("critter_autoexchangeinterval", 0, 0);
	addSettingcheckbox("critter_enableomnivores", 0, 0);
	addSettingcheckbox("critter_raycastvision", 0, 0);

	row+=8; addSection("Food", 0, 0);
	addMutator("energy", cmd.gen("decreaseenergy"), cmd.gen("increaseenergy"), 0, 0);
	addSettingmutator("food_maxlifetime", 0, 0);
	addMutator("food_maxenergy", cmd.gen("dec_foodmaxenergy"), cmd.gen("inc_foodmaxenergy"), 0, 0);
	addSettingmutator("food_size", 0, 0);
  addSettingmutator("food_scale", 0,0);

	row+=8; addSection("Natural Disaster", 0, 0);
	addSettingmutator("critter_killhalfat", 0, 0);
	addSettingmutator("killhalf_decrenergypct", 0, 0);
	addSettingmutator("killhalf_incrworldsizeX", 0, 0);
	addSettingmutator("killhalf_incrworldsizeY", 0, 0);
	addSettingmutator("killhalf_decrmaxlifetimepct", 0, 0);

	row+=8; addSection("Physics", 0, 0);
  addSettingmutator("maximumimpulse",0,0);
  addSettingcheckbox("absolutemotorneurons",0,0);


	v_width = col3 + 40;
	v_height = row-rowspacer+10+10; // 10 = height of 1 line, 10 = horizontal margin

}

Globalsettingspanel::~Globalsettingspanel()
{
}
